package com.dwxt.community.aiequipment.sellmachine.entity;

import javax.validation.*;
import javax.validation.constraints.*;
import java.util.Date;

public class SellMachineAisle {

    private String aisleId;

    @NotNull(message = "货道号不能为空")
    private Integer aisleNo;

    private String aisleGoodsId;

    private Integer aisleUseing = 1;

    private Date aisleCreateTime;

    private Date aisleUpdateTime;

    private Integer aisleMax;

    private Integer aisleMin = 0;

    @NotNull(message = "货道所属设备不能为空")
    private String machineId;
    @NotNull(message = "请输入补货后的值！")
    private Integer currentNum = 0;
    @Valid
    private SellMachineGoods sellMachineGoods;

    private SellMachine sellMachine;

    public SellMachine getSellMachine() {
        return sellMachine;
    }

    public void setSellMachine(SellMachine sellMachine) {
        this.sellMachine = sellMachine;
    }

    public SellMachineGoods getSellMachineGoods() {
        return sellMachineGoods;
    }

    public void setSellMachineGoods(SellMachineGoods sellMachineGoods) {
        this.sellMachineGoods = sellMachineGoods;
    }

    public String getAisleId() {
        return aisleId;
    }

    public void setAisleId(String aisleId) {
        this.aisleId = aisleId == null ? null : aisleId.trim();
    }

    public Integer getAisleNo() {
        return aisleNo;
    }

    public void setAisleNo(Integer aisleNo) {
        this.aisleNo = aisleNo;
    }

    public String getAisleGoodsId() {
        return aisleGoodsId;
    }

    public void setAisleGoodsId(String aisleGoodsId) {
        this.aisleGoodsId = aisleGoodsId == null ? null : aisleGoodsId.trim();
    }

    public Integer getAisleUseing() {
        return aisleUseing;
    }

    public void setAisleUseing(Integer aisleUseing) {
        this.aisleUseing = aisleUseing;
    }

    public Date getAisleCreateTime() {
        return aisleCreateTime;
    }

    public void setAisleCreateTime(Date aisleCreateTime) {
        this.aisleCreateTime = aisleCreateTime;
    }

    public Date getAisleUpdateTime() {
        return aisleUpdateTime;
    }

    public void setAisleUpdateTime(Date aisleUpdateTime) {
        this.aisleUpdateTime = aisleUpdateTime;
    }

    public Integer getAisleMax() {
        return aisleMax;
    }

    public void setAisleMax(Integer aisleMax) {
        this.aisleMax = aisleMax;
    }

    public Integer getAisleMin() {
        return aisleMin;
    }

    public void setAisleMin(Integer aisleMin) {
        this.aisleMin = aisleMin;
    }

    public String getMachineId() {
        return machineId;
    }

    public void setMachineId(String machineId) {
        this.machineId = machineId == null ? null : machineId.trim();
    }

    public Integer getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(Integer currentNum) {
        this.currentNum = currentNum;
    }
}